module.exports = app => {
    const { INTEGER, STRING } = app.Sequelize;

    return app.model.define('movie', {
        id: {
            type: INTEGER,
            autoIncrement: true,
            primaryKey: true,
        },
        move_id: {
            type: INTEGER,
            allowNull: false,
            unique: 'idx_move_id'
        },
        name: {
            type: STRING(100),
            allowNull: false,
        },
    }, {
        tableName: 'tbl_demo_movie',
        timestamps: true,
        underscored: true,
        charset: 'utf8',
        collate: 'utf8_general_ci'
    });
};